<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>pyswap: modem::SerialModem::SerialModem Class Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  <td id="projectlogo"><img alt="Logo" src="panStamp_web.png"/></td>
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">pyswap
   
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="hierarchy.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><b>modem</b>      </li>
      <li class="navelem"><b>SerialModem</b>      </li>
      <li class="navelem"><a class="el" href="classmodem_1_1SerialModem_1_1SerialModem.html">SerialModem</a>      </li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#nested-classes">Classes</a> &#124;
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-attribs">Public Attributes</a>  </div>
  <div class="headertitle">
<div class="title">modem::SerialModem::SerialModem Class Reference</div>  </div>
</div>
<div class="contents">
<!-- doxytag: class="modem::SerialModem::SerialModem" -->
<p>Class representing a serial panstamp modem.  
 <a href="classmodem_1_1SerialModem_1_1SerialModem.html#details">More...</a></p>

<p><a href="classmodem_1_1SerialModem_1_1SerialModem-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="nested-classes"></a>
Classes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmodem_1_1SerialModem_1_1SerialModem_1_1Mode.html">Mode</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Serial modes.  <a href="classmodem_1_1SerialModem_1_1SerialModem_1_1Mode.html#details">More...</a><br/></td></tr>
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ab20cdaa6f5c6ee8b80c49daeb56f7e1d"></a><!-- doxytag: member="modem::SerialModem::SerialModem::stop" ref="ab20cdaa6f5c6ee8b80c49daeb56f7e1d" args="" -->
def&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmodem_1_1SerialModem_1_1SerialModem.html#ab20cdaa6f5c6ee8b80c49daeb56f7e1d">stop</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Stop serial gateway. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">def&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmodem_1_1SerialModem_1_1SerialModem.html#a74eb2c20e669e55cd5fdaae39aa98e66">setRxCallback</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Set callback reception function.  <a href="#a74eb2c20e669e55cd5fdaae39aa98e66"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">def&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmodem_1_1SerialModem_1_1SerialModem.html#ad81822a437f2d172fe67be866650f4fb">goToCommandMode</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Enter command mode (for AT commands)  <a href="#ad81822a437f2d172fe67be866650f4fb"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">def&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmodem_1_1SerialModem_1_1SerialModem.html#a6bdc2e076833cc1e7924939c05c4c578">goToDataMode</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Enter data mode (for Rx/Tx operations)  <a href="#a6bdc2e076833cc1e7924939c05c4c578"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">def&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmodem_1_1SerialModem_1_1SerialModem.html#a01e91df3ad1806c2b259404a89578a8b">reset</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Reset serial gateway.  <a href="#a01e91df3ad1806c2b259404a89578a8b"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">def&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmodem_1_1SerialModem_1_1SerialModem.html#a81ac63254698c78acd85639775da4352">runAtCommand</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Run AT command on the serial gateway.  <a href="#a81ac63254698c78acd85639775da4352"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">def&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmodem_1_1SerialModem_1_1SerialModem.html#aeb3adc7cf95a453b616e1158f5c555e1">sendCcPacket</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Send wireless CcPacket through the serial gateway.  <a href="#aeb3adc7cf95a453b616e1158f5c555e1"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">def&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmodem_1_1SerialModem_1_1SerialModem.html#ab54e8fde5bd57b025b21aee7c49588cc">setFreqChannel</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Set frequency channel for the wireless gateway.  <a href="#ab54e8fde5bd57b025b21aee7c49588cc"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">def&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmodem_1_1SerialModem_1_1SerialModem.html#afb66730a557cb209f3ffb8caa41b5495">setSyncWord</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Set synchronization word for the wireless gateway.  <a href="#afb66730a557cb209f3ffb8caa41b5495"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">def&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmodem_1_1SerialModem_1_1SerialModem.html#a7c4b421ac7e89d9960509aa05013e71e">setDevAddress</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Set device address for the serial gateway.  <a href="#a7c4b421ac7e89d9960509aa05013e71e"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">def&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmodem_1_1SerialModem_1_1SerialModem.html#afe28dadbae5c0b215a94ab4628e398f5">__init__</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Class constructor.  <a href="#afe28dadbae5c0b215a94ab4628e398f5"></a><br/></td></tr>
<tr><td colspan="2"><h2><a name="pub-attribs"></a>
Public Attributes</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a3e6f1e65d5424e8ec6394d17ecb3bee3"></a><!-- doxytag: member="modem::SerialModem::SerialModem::freq_channel" ref="a3e6f1e65d5424e8ec6394d17ecb3bee3" args="" -->
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmodem_1_1SerialModem_1_1SerialModem.html#a3e6f1e65d5424e8ec6394d17ecb3bee3">freq_channel</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Frequency channel of the serial gateway. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a484ba641ea548bafd4abf0def18b0066"></a><!-- doxytag: member="modem::SerialModem::SerialModem::syncword" ref="a484ba641ea548bafd4abf0def18b0066" args="" -->
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmodem_1_1SerialModem_1_1SerialModem.html#a484ba641ea548bafd4abf0def18b0066">syncword</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Synchronization word of the serial gateway. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa1cd04d2d7b9fe74dabf01e5cde367d2"></a><!-- doxytag: member="modem::SerialModem::SerialModem::devaddress" ref="aa1cd04d2d7b9fe74dabf01e5cde367d2" args="" -->
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmodem_1_1SerialModem_1_1SerialModem.html#aa1cd04d2d7b9fe74dabf01e5cde367d2">devaddress</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Device address of the serial gateway. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a83b2680b2046612a4369fa5fc3427007"></a><!-- doxytag: member="modem::SerialModem::SerialModem::portname" ref="a83b2680b2046612a4369fa5fc3427007" args="" -->
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmodem_1_1SerialModem_1_1SerialModem.html#a83b2680b2046612a4369fa5fc3427007">portname</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Name(path) of the serial port. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a389f263305e6d86e70f68515bf51f51b"></a><!-- doxytag: member="modem::SerialModem::SerialModem::portspeed" ref="a389f263305e6d86e70f68515bf51f51b" args="" -->
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmodem_1_1SerialModem_1_1SerialModem.html#a389f263305e6d86e70f68515bf51f51b">portspeed</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Speed of the serial port in bps. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a36cf62f5753d22266b2e7128571c175f"></a><!-- doxytag: member="modem::SerialModem::SerialModem::hwversion" ref="a36cf62f5753d22266b2e7128571c175f" args="" -->
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmodem_1_1SerialModem_1_1SerialModem.html#a36cf62f5753d22266b2e7128571c175f">hwversion</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Hardware version of the serial modem. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aed9878654fc6b986f57d654ee418367d"></a><!-- doxytag: member="modem::SerialModem::SerialModem::fwversion" ref="aed9878654fc6b986f57d654ee418367d" args="" -->
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classmodem_1_1SerialModem_1_1SerialModem.html#aed9878654fc6b986f57d654ee418367d">fwversion</a></td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Firmware version of the serial modem. <br/></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>Class representing a serial panstamp modem. </p>
</div><hr/><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" id="afe28dadbae5c0b215a94ab4628e398f5"></a><!-- doxytag: member="modem::SerialModem::SerialModem::__init__" ref="afe28dadbae5c0b215a94ab4628e398f5" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">def modem::SerialModem::SerialModem::__init__ </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>self</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>portname</em> = <code>&quot;/dev/ttyUSB0&quot;</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>speed</em> = <code>38400</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>verbose</em> = <code>False</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Class constructor. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">portname,:</td><td>Name/path of the serial port </td></tr>
    <tr><td class="paramname">speed,:</td><td>Serial baudrate in bps </td></tr>
    <tr><td class="paramname">verbose,:</td><td>Print out SWAP traffic (True or False) </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="ad81822a437f2d172fe67be866650f4fb"></a><!-- doxytag: member="modem::SerialModem::SerialModem::goToCommandMode" ref="ad81822a437f2d172fe67be866650f4fb" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">def modem::SerialModem::SerialModem::goToCommandMode </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>self</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Enter command mode (for AT commands) </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>True if the serial gateway does enter Command <a class="el" href="classmodem_1_1SerialModem_1_1SerialModem_1_1Mode.html" title="Serial modes.">Mode</a>. Return false otherwise </dd></dl>

</div>
</div>
<a class="anchor" id="a6bdc2e076833cc1e7924939c05c4c578"></a><!-- doxytag: member="modem::SerialModem::SerialModem::goToDataMode" ref="a6bdc2e076833cc1e7924939c05c4c578" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">def modem::SerialModem::SerialModem::goToDataMode </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>self</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Enter data mode (for Rx/Tx operations) </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>True if the serial gateway does enter Data <a class="el" href="classmodem_1_1SerialModem_1_1SerialModem_1_1Mode.html" title="Serial modes.">Mode</a>. Return false otherwise </dd></dl>

</div>
</div>
<a class="anchor" id="a01e91df3ad1806c2b259404a89578a8b"></a><!-- doxytag: member="modem::SerialModem::SerialModem::reset" ref="a01e91df3ad1806c2b259404a89578a8b" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">def modem::SerialModem::SerialModem::reset </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>self</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Reset serial gateway. </p>
<dl class="return"><dt><b>Returns:</b></dt><dd>True if the serial gateway is successfully restarted </dd></dl>

</div>
</div>
<a class="anchor" id="a81ac63254698c78acd85639775da4352"></a><!-- doxytag: member="modem::SerialModem::SerialModem::runAtCommand" ref="a81ac63254698c78acd85639775da4352" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">def modem::SerialModem::SerialModem::runAtCommand </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>self</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>cmd</em> = <code>&quot;AT\r&quot;</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>timeout</em> = <code>1000</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Run AT command on the serial gateway. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">cmd,:</td><td>AT command to be run </td></tr>
    <tr><td class="paramname">timeout,:</td><td>Period after which the function should timeout</td></tr>
  </table>
  </dd>
</dl>
<dl class="return"><dt><b>Returns:</b></dt><dd>Response received from gateway or None in case of lack of response (timeout) </dd></dl>

</div>
</div>
<a class="anchor" id="aeb3adc7cf95a453b616e1158f5c555e1"></a><!-- doxytag: member="modem::SerialModem::SerialModem::sendCcPacket" ref="aeb3adc7cf95a453b616e1158f5c555e1" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">def modem::SerialModem::SerialModem::sendCcPacket </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>self</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>packet</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Send wireless CcPacket through the serial gateway. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">packet,:</td><td>CcPacket to be transmitted </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a7c4b421ac7e89d9960509aa05013e71e"></a><!-- doxytag: member="modem::SerialModem::SerialModem::setDevAddress" ref="a7c4b421ac7e89d9960509aa05013e71e" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">def modem::SerialModem::SerialModem::setDevAddress </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>self</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>value</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Set device address for the serial gateway. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">value,:</td><td>New device address </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ab54e8fde5bd57b025b21aee7c49588cc"></a><!-- doxytag: member="modem::SerialModem::SerialModem::setFreqChannel" ref="ab54e8fde5bd57b025b21aee7c49588cc" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">def modem::SerialModem::SerialModem::setFreqChannel </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>self</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>value</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Set frequency channel for the wireless gateway. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">value,:</td><td>New frequency channel </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="a74eb2c20e669e55cd5fdaae39aa98e66"></a><!-- doxytag: member="modem::SerialModem::SerialModem::setRxCallback" ref="a74eb2c20e669e55cd5fdaae39aa98e66" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">def modem::SerialModem::SerialModem::setRxCallback </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>self</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>cbFunct</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Set callback reception function. </p>
<p>Notify new CcPacket reception</p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">cbFunct,:</td><td>Definition of custom Callback function for the reception of packets </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="afb66730a557cb209f3ffb8caa41b5495"></a><!-- doxytag: member="modem::SerialModem::SerialModem::setSyncWord" ref="afb66730a557cb209f3ffb8caa41b5495" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">def modem::SerialModem::SerialModem::setSyncWord </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>self</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>value</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Set synchronization word for the wireless gateway. </p>
<dl><dt><b>Parameters:</b></dt><dd>
  <table class="params">
    <tr><td class="paramname">value,:</td><td>New synchronization word </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>/home/daniel/development/Aptana/pyswap/src/modem/SerialModem.py</li>
</ul>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Variables</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>



<hr class="footer"/><address class="footer"><small>
Generated on Fri Dec 9 2011 16:23:27 for pyswap by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.5.1
</small></address>

</body>
</html>
